from tortoise.contrib.pydantic import pydantic_model_creator

from models import User

User_Pydantic = pydantic_model_creator(User, name="User", exclude_readonly=True, exclude=("password",))
UserIn_Pydantic = pydantic_model_creator(User, name="UserIn", exclude_readonly=True, exclude=("id",))
UserLogin_Pydantic = pydantic_model_creator(User, name="UserLogin", exclude_readonly=True,
                                            include=("username", "password", "role"))
